/*
 * @Author: Y先森
 * @Date: 2023-04-14 09:25:15
 * @LastEditors: y && 250048395@qq.com
 * @LastEditTime: 2023-05-10 14:25:23
 * @FilePath: \y-website\src\router\modules\pc-routes.js
 */
export default [
  {
    path: '/',
    name: 'main',
    redirect: 'home',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/Home.vue'),
        meta: {
          title: '首页',
          isExclusive: true
        }
      },
      {
        path: '/craftshare',
        name: 'craftshare',
        component: () => import('@/views/craftShare/index.vue'),
        meta: {
          title: '技术分享',
          isExclusive: false
        }
      },
      {
        path: '/creation',
        name: 'creation',
        component: () => import('@/views/creation/index.vue'),
        meta: {
          title: '灵感创作',
          isExclusive: false
        }
      },
      {
        path: '/design',
        name: 'design',
        component: () => import('@/views/design/index.vue'),
        meta: {
          title: '设计作品',
          isExclusive: false
        }
      },
      {
        path: '/game',
        name: 'game',
        component: () => import('@/views/Game.vue'),
        meta: {
          title: '游戏',
          isExclusive: false
        }
      },
      {
        path: '/music',
        name: 'music',
        component: () => import('@/views/music/index.vue'),
        meta: {
          title: '音乐',
          isExclusive: false
        }
      },
    ]
  },
  {
    path: '/pins/:id',
    name: 'pins',
    component: () => import('@/views/pins/index.vue'),
    meta: {
      title: '页面不存在'
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue'),
    meta: {
      title: '登录页'
    }
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/404.vue'),
    meta: {
      title: '页面不存在'
    }
  }
]
